<template>
  <div>
    components type
    <el-form ref="form2" :model="formData2" :rules="form2Rule">
      <el-form-item label="choice" prop="letterWay">
        <choice v-model="formData2.letterWay" parent-id="100101003" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="handleClickForm2()">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'dict',
  data() {
    return {
      formData2: {
        letterWay: ''
      },
      form2Rule: {
        letterWay: [{ required: true, trigger: 'change', message: '请选择方式' }]
      }
    }
  },
  mounted() {
  },
  methods: {
    handleClickForm2() {
      this.$refs.form2.validate(valid => {
        if (valid) {
          console.log('pass')
        }
      })
    }
  }
}
</script>

<style>

</style>
